home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / 3d_lib.zip / DUMPO.C < prev    next >
C/C++ Source or Header  |  1990-12-09  |  771b  |  34 lines

  1. /* Dump object to screen
  2.  
  3.    Copyright (c) 1988 by Gus O'Donnell
  4.  
  5.    Revision history:
  6.  
  7.    Version 1.00         February 29, 1988       As released.
  8.  
  9.    Version 1.01         March 20, 1988          Created libraries for all
  10.                                                 memory models
  11.  
  12. */
  13. #include "3d.h"
  14. #include <float.h>
  15. #include <math.h>
  16. #include <stdio.h>
  17.  
  18. void    dump_obj (OBJECT this_obj)
  19.  
  20. /* Dump an object to the screen. */
  21.  
  22. {
  23.     FACE *fhandle;                      /* Pointer for traversing the face
  24.                                            list */
  25.  
  26.     fhandle = this_obj.faces -> next;
  27.     while ((fhandle -> next) != NULL)
  28.     {
  29.         dump_face (*fhandle);
  30.         fhandle = fhandle -> next;
  31.     }
  32.     printf("\n");
  33. }
  34.